<%@ page import="com.qipay.baas.model.User" %>
<html>
<body>
<h2>welcome!</h2>
</body>
</html>
<%
    User user = (User) session.getAttribute("user");
    String isLogin = user != null ? "1" : "2";

%>
<script type="application/javascript">
    var isLogin = "<%= isLogin%>";
    if (isLogin == "1") {
        window.location.href = "${pageContext.request.contextPath}/index";
    }

</script>